package com.wisely.ch8_3.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Entity;

/**
 * Created by thor on 17-3-22.
 */
@Entity
public class Person extends AbstractPersistable<Long>{
  private String name;
  private Integer age;
  private String address;

  public Person(){
    super();
  }
  public Person(Long id, String name, Integer age, String address) {
    this.setId(id);
    this.name = name;
    this.age = age;
    this.address = address;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }
}
